module.exports = {
    TABLE_NICK_NAME: '作业表', // 表的昵称
    TABLE_DESC: '作业记录表', // 表的描述
    name: {
        type: "input",
        data_type: "VARCHAR(100)", // 修改长度
        attr: { type: "text" },
        label: "作业名称",
        rule: { NotNull: true }
    },
    sp_course_id: {
        type: "input",
        data_type: "VARCHAR(50)",
        attr: { type: "text" },
        label: "课程id",
    },
    sp_chapter_id: {
        type: "input",
        data_type: "VARCHAR(200)",
        attr: { type: "text" },
        label: "章节id",
    },
    knowledge_points: {
        type: "input",
        data_type: "VARCHAR(200)",
        attr: { type: "text" },
        label: "知识点",
    },
    total_score: {
        type: "input",
        data_type: "VARCHAR(255)",
        attr: { type: "text" },
        label: "作业总分",
    },
    weight_score: {
        type: "input",
        data_type: "decimal(5,2)",
        attr: { type: "text" },
        label: "作业权重分数",
    },
    
    remark: {
        type: "input",
        data_type: "VARCHAR(1000)",
        attr: { type: "text" },
        label: "备注",
    },
    type: {
        type: "select",
        attr: {
            actions: [
                { name: "课后练习", value: 0, },
                { name: "单元测试", value: 1, },
                { name: "期中测试", value: 2, },
                { name: "期末测试", value: 3, },
            ]
        },
        label: "题目类型",
        defaultValue: 1,
    },
    status: {
        type: "switch",
        label: "状态",
        unList: true,
    },
    create_by: {
        type: "input",
        data_type: "BIGINT",
        attr: { type: "text" },
        label: "创建人",
        rule: { NotNull: false }
    },
    update_by: {
        type: "input",
        data_type: "BIGINT",
        attr: { type: "text" },
        label: "更新人",
        rule: { NotNull: false }
    }

};
